# 计算100以内所有数字的和
a = 0
sum1 = 0
while a <= 100:
    # 循环体
    sum1 += a # sum= sum+a
    a += 1  # 改变循环条件
print(sum1)  # 5050
